package com.fmi.timedealer.plan;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

import com.fmi.timedealer.plan.PlannedActivity;

public class Plan implements Serializable {

	private static final long serialVersionUID = 2938047852342194501L;
	
	private int id;
	private String name;
	private String description;
	private Date start;
	private Date end;
	private ArrayList<PlannedActivity> plannedActivities;
	
	public Plan() {
		this(0, "", "", new Date(), new Date());
	}
	
	public Plan(int id, String name, String description, Date start, Date end) {
		
		this.id = id;
		setName(name);
		setDescription(description);
		setStart(start);
		setEnd(end);
		setPlannedActivities(new ArrayList<PlannedActivity>());
	}

	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public Date getStart() {
		return start;
	}
	
	public void setStart(Date start) {
		this.start = start;
	}
	
	public Date getEnd() {
		return end;
	}
	
	public void setEnd(Date end) {
		this.end = end;
	}

	public ArrayList<PlannedActivity> getPlannedActivities() {
		return plannedActivities;
	}

	public void setPlannedActivities(ArrayList<PlannedActivity> plannedActivities) {
		this.plannedActivities = plannedActivities;
	}

	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
}
